﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.Master" CodeBehind="KQTim.aspx.cs" Inherits="Sport_Shop.KQTim" %>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
<style>
    .resizeSP
    {
        width:220px;
        height:310px;
    }
    .buttonnho
        {
	        border: 2px white solid;
	        background: black;
	        color: white;
	        height: 28px;
	        width: 30px;
	        font-weight:bold;
	        display:inline;
	        font-size:14px;
        }

        .buttonnho:hover
        {
	        color: black;
	        background-color: white;
        }

        .buttonlon
        {
	        border: 2px white solid;
	        background: black;
	        color: white;
	        height: 28px;
	        width: 100px;
	        font-weight:bold;
	        display:inline;
	        font-size:14px;
        }

        .buttonlon:hover
        {
	        color: black;
	        background-color: white;
        }
</style>
    <asp:DataList ID="dlKQTim" runat="server" AlternatingItemStyle-HorizontalAlign="NotSet" 
        RepeatColumns="2" RepeatDirection="Horizontal" CellSpacing="24">
        <ItemTemplate>
            <table>
                <tr>
                    <td><asp:HyperLink ID="xemCTSP" runat="server" NavigateUrl='<%# Eval("MaSP","~/ChiTietSP.aspx?MaSP={0}") %>' >
                        <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("HinhAnh") %>' CssClass="resizeSP"/>
                        </asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td style="text-align:center;" bgcolor="white" height="24px">
                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("TenSP") %>' Font-Bold="True" Font-Size="15px" ForeColor="#808080" />
                    </td>
                </tr>
                <tr>
                    <td style="text-align:center;" bgcolor="gray" height="24px">
                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("DonGia") %>' Font-Bold="True" Font-Size="15px" ForeColor="White" />
                    </td>
                </tr>
            </table>
            
        </ItemTemplate>
    </asp:DataList>
    <center><asp:Button ID="btDau" runat="server" Text="Trang đầu" CssClass="buttonlon" OnClick="btDau_Click" />
    <asp:Button ID="btTruoc" runat="server" Text="<<" CssClass="buttonnho" OnClick="btTruoc_Click" />
    <asp:TextBox ID="tbTrang" runat="server" Width="20px" Height="26px" BorderStyle="NotSet"/>
    <asp:Button ID="btSau" runat="server" Text=">>" CssClass="buttonnho" OnClick="btSau_Click" />
    <asp:Button ID="btCuoi" runat="server" Text="Trang cuối" CssClass="buttonlon" OnClick="btCuoi_Click" />
    </center>
 
</asp:Content>
